package lab02.test36;

public class UnderGraduate extends Student {

    public UnderGraduate(String name, int Chinese, int math, int English) {
        super(name, Chinese, math, English);
    }

    public float pi(int st, float bk) {
        float a;
        a = (bk + st) / 2;
        return a;
    }

    public void benkepd(float a) {
        if (a > 80) {
            System.out.println("该生为优秀");
        } else if (a > 70) {
            System.out.println("该学生为良好");
        } else if (a > 59) {
            System.out.println("该学生为及格");
        } else {

            System.out.println("该学生为不及格");
        }
    }
}
